<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0062)http://voky.com.ua/showcase/sky-forms/examples/demo-login.html -->

<%@ page errorPage="/pageError.jsp"%>
<%@ page import="csc.nndp.lessons.*;"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login Page</title>

<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0">

<link rel="stylesheet"
	href="http://voky.com.ua/showcase/sky-forms/examples/css/demo.css">
<link rel="stylesheet"
	href="http://voky.com.ua/showcase/sky-forms/examples/css/sky-forms.css">

</head>
<body class="bg-cyan">
	<%
		if (request.getAttribute("message") != null) {
	%>
	<span style="color: red;"><%=request.getAttribute("message")%> </span>
	<%
		}
	%>

	<div class="body body-s">

		<form action="logon" method="post" class="sky-form">
			<header>Login form</header>

			<fieldset>
				<section>
				<div class="row">
					<label class="label col col-4">UserName</label>
					<%
						//session.invalidate();

						String userName = CookieUtilities.getCookieValue(request,
								"userName", "");
					%>
					<div class="col col-8">
						<label class="input"> <input name="userName" type="text"
							value="<%=userName%>" />
						</label>
					</div>
				</div>
				</section>

				<section>
				<div class="row">
				
				<%
						//session.invalidate();

						String password = CookieUtilities.getCookieValue(request,
								"password", "");
					%>
				
				

					<label class="label col col-4">Password</label>
					<div class="col col-8">
						<label class="input"> <input name="password"
							type="password" value="<%=password%>" />
						</label>
					</div>
				</div>
				</section>

				<section>
				<div class="row">
					<div class="col col-4"></div>
					<div class="col col-8">
						<label class="checkbox"> <input name="rememberme"
							type="checkbox" value="yes" /><i></i>Remember me.
						</label>
					</div>
				</div>
				</section>

			</fieldset>
			<footer>
			<button type="submit" class="button">Log in</button>
			<a href="register.jsp" class="button button-secondary">Register</a> </footer>
		</form>

	</div>

</body>
</html>